export type RecordAny = Record<any,any>
// 推断Promise函数的返回值
export type PickPromise<P> = P extends Promise<infer R> ? R : P

export type PickFrom<T, K extends Array<string>> = T extends Array<any> ? T : T extends Record<string, any> ? keyof T extends K[number] ? T : K[number] extends never ? T : Pick<T, K[number]> : T;
export type KeysOf<T> = Array<T extends T ? keyof T extends string ? keyof T : never : never>;
// 将只读的对象转换为可写
export type Mutable<T> = {
	  -readonly [P in keyof T]: T[P];
	};
	
// 微信小程序支付接口参数
export type WxPaymentParams = Parameters<typeof wx.requestPayment>[0]